-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize accounts #241
Resize accounts #241
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
13bf4ec
to
c06b199
Compare
c06b199
to
f32193c
Compare
94488bc
to
b017a55
Compare
c2401ed
to
f32193c
Compare
ba8cf56
to
2dcde98
Compare
@@ -17,8 +17,7 @@ jobs: | |||
with: | |||
node-version: "16.13" | |||
- name: Npm install | |||
working-directory: ./staking | |||
run: npm install | |||
run: npm ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by use npm ci
package-lock.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by clean up package lock
@@ -417,7 +419,8 @@ pub mod tests { | |||
position_data.write_position(i, &position).unwrap(); | |||
} else { | |||
assert!(set.len() == MAX_POSITIONS); | |||
assert!(position_data.reserve_new_index(&mut next_index).is_err()) | |||
assert!(position_data.reserve_new_index(&mut next_index).is_err()); | |||
next_index -= 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by fix this test
Resize user accounts to be smaller.
The position account goes from 100 positions to 20 positions.
The cost of a stake account goes from 0.22 SOL to 0.038 SOL.